SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46859: How to compute the width for $BASE64Xw. format

DetailsAboutRate It

To determine the correct width for the $BASE64X format, obtain the byte length of the variable to be formatted from PROC CONTENTS. Substitute that length into the formula below in place of LEN. The result of this formula is the needed width for the format.

format_width=(LEN+2)/3*4
For example, if the variable length=48:
1. Add 2 which is 50
2. Divide 50 by 3 which is 16.666
3. Multiply the integer portion, 16, by 4 =64
You would need a width of 64 for the $BASE64X format.

If the format's width is too small, there is no error or note written to the log and the output does not occur.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M09.4 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M09.4 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M0
Microsoft Windows 2000 Server9.1 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M0
Microsoft Windows NT Workstation9.1 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.1 TS1M09.4 TS1M0
64-bit Enabled AIX9.1 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.1 TS1M09.4 TS1M0
64-bit Enabled Solaris9.1 TS1M09.4 TS1M0
HP-UX IPF9.1 TS1M09.4 TS1M0
Linux9.1 TS1M09.4 TS1M0
OpenVMS Alpha9.1 TS1M09.4 TS1M0
Tru64 UNIX9.1 TS1M09.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.